package com.xiaofeng.pochi.service;

import com.xiaofeng.pochi.common.Page;
import com.xiaofeng.pochi.pojo.ShopProductCollection;
import com.xiaofeng.pochi.pojo.vo.ShopProductCollectionVo;

/**
 * Created with IntelliJ IDEA
 *
 * @Author: chc
 * @Date: 2022/08/28/21:44
 * @Description:
 */
public interface ShopProductCollectionService {

    /**
     * 切换收藏状态
     * @param shopProductCollection
     */
    void changeCollection(ShopProductCollection shopProductCollection);

    /**
     * 根据商品id查询
     * */
    ShopProductCollection getByProductId(Long productId);

    Page<ShopProductCollectionVo> getByPage(Page<ShopProductCollection> page);
}
